

@RestController
@RequestMapping("/'tmsStoreGroup'")
public class 'TmsStoreGroup'Controller {

    @Resource
    private 'TmsStoreGroup'Service 'tmsStoreGroup'Service;


    /**
     * 获取 'TmsStoreGroup' 分页列表
     */
    @GetMapping("/pagination")
    public Ret get'TmsStoreGroup'Pagination( PaginationVo paginationVo, 'TmsStoreGroup'Query 'tmsStoreGroup'Query ) throws Exception {
        IPage page = 'tmsStoreGroup'Service.get'TmsStoreGroup'Pagination(paginationVo, 'tmsStoreGroup'Query );
        return Ret.toPage(page);
    }


    /**
     * 获取 'TmsStoreGroup' 所有数据
     */
    @GetMapping("/all")
    public Ret get'TmsStoreGroup'AllList( 'TmsStoreGroup'Query 'tmsStoreGroup'Query ) throws Exception {
        List<'TmsStoreGroup'Entity> list = 'tmsStoreGroup'Service.get'TmsStoreGroup'AllList( 'tmsStoreGroup'Query );
        return Ret.ok(list);
    }



    /**
     * 获取 'TmsStoreGroup' 详情
    */
   @GetMapping("/{id}")
   public Ret get'TmsStoreGroup'Detail(@PathVariable Long id) throws Exception {

       'TmsStoreGroup'Entity 'tmsStoreGroup' = 'tmsStoreGroup'Service.get'TmsStoreGroup'Detail(id);
       return Ret.ok('tmsStoreGroup');
   }


    /**
     * 新增 'TmsStoreGroup'
     * */
    @PostMapping("")
    public Ret add'TmsStoreGroup'(@RequestBody 'TmsStoreGroup'Vo 'tmsStoreGroup'Vo) throws Exception {

        'tmsStoreGroup'Service.add'TmsStoreGroup'('tmsStoreGroup'Vo);
        return Ret.ok();
    }


    /**
     * 更新 'TmsStoreGroup'
     * */
    @PutMapping("")
    public Ret update'TmsStoreGroup'(@RequestBody 'TmsStoreGroup'Vo 'tmsStoreGroup'Vo) throws Exception {

        'tmsStoreGroup'Service.update'TmsStoreGroup'('tmsStoreGroup'Vo);
        return Ret.ok();
    }


    /**
     * 删除 'TmsStoreGroup'
     * */
    @PostMapping("/batchRemove")
    public Ret batchRemove'TmsStoreGroup'( @RequestBody List<Long> ids ) throws Exception {

        'tmsStoreGroup'Service.batchRemove'TmsStoreGroup'(ids);
        return Ret.ok();
    }
}

  